Skip to content

feat(inspect): refs #1489

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

feat(inspect): refs #1489

wants to merge 4 commits into from

Conversation

jayceslesar
Copy link

Which issue does this PR close?

Subtask for #823

What changes are included in this PR?

Adds a refs table to the inspect

Are these changes tested?

Added a unit test.

I am pretty terrible at rust so far but think it is generally valuable to start implementing things here so we can roll wheels for the python implementation. Hoping to learn!

@jayceslesar jayceslesar changed the title feat: refs feat(inspect): refs Jul 4, 2025
/// Returns the iceberg schema of the refs table.
pub fn schema(&self) -> crate::spec::Schema {
let fields = vec![
NestedField::required(1, "name", Type::Primitive(PrimitiveType::String)),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any value in adding docs for each field?

Arc::new(max_snapshot_age_in_ms.finish()),
])?;

Ok(stream::iter(vec![Ok(batch)]).boxed())

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't expect Refs to be particularly large, but is there a reason to not make this an actual stream that can read back the data incrementally (seems like it would be not that much more effort).

],
min_snapshots_to_keep: PrimitiveArray<Int32>
[
null,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for this and max_snapshot_age_in_ms, it seems like it would be good to have test coverage when the value is present, to differentiate tags from branchs

Copy link

@emkornfield emkornfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New to the code base and reviews so please take comments with a grain of salt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants